package com.tobeface.sns.domain.blog;

import java.util.Collection;

import org.springframework.data.mongodb.core.mapping.Document;

import com.google.common.collect.Lists;
import com.kissme.core.domain.AbstractDomain;

/**
 * @author Linxiaosheng
 */
@Document(collection = "blog")
public class Blog extends AbstractDomain {

	private static final long serialVersionUID = 1L;

	private String title;
	private String content;
	private String createTime;
	private String visibility;
	private String memberId;

	private Collection<BlogChannel> blogChannels = Lists.newArrayList();
	private Collection<BlogComment> comments = Lists.newArrayList();

	
	public String getVisibility() {
		return visibility;
	}

	public void setVisibility(String visibility) {
		this.visibility = visibility;
	}

	public Collection<BlogComment> getComments() {
		return comments;
	}

	public Blog setComments(Collection<BlogComment> comments) {
		this.comments = comments;
		return this;
	}

	public Blog setBlogChannels(Collection<BlogChannel> blogChannels) {
		this.blogChannels = blogChannels;
		return this;
	}

	public String getMemberId() { 
		return memberId;
	}

	public Blog setMemberId(String memberId) {
		this.memberId = memberId;
		return this;
	}

	public Collection<BlogChannel> getBlogChannels() {
		return blogChannels;
	}

	public String getCreateTime() {
		return createTime;
	}

	public Blog setCreateTime(String createTime) {
		this.createTime = createTime;
		return this;
	}

	public String getTitle() {
		return title;
	}

	public Blog setTitle(String title) {
		this.title = title;
		return this;
	}

	public String getContent() {
		return content;
	}

	public Blog setContent(String content) {
		this.content = content;
		return this;
	}

	/**
	 * @author Linxiaosheng
	 */
	public enum Visibility {
		SELF, FRIEND, ALL
	}

}
